﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<LinearGradientBrush x:Key="Brush2" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#cef8ff" Offset="0"/>
		<GradientStop Color="#7fe0f8" Offset="1"/>
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="Brush1" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#99dff5" Offset="0"/>
		<GradientStop Color="#02b0e6" Offset="1"/>
	</LinearGradientBrush>
	<!-- 应该在此定义资源字典条目。-->
	<Style x:Key="gridone" TargetType="Grid" >
		<Style.Resources>
			<Storyboard x:Key="OnMouseMove1">
				<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="{x:Null}">
					<EasingColorKeyFrame KeyTime="0" Value="#FFBBEAF9">
						<EasingColorKeyFrame.EasingFunction>
							<CircleEase EasingMode="EaseIn"/>
						</EasingColorKeyFrame.EasingFunction>
					</EasingColorKeyFrame>
					<EasingColorKeyFrame KeyTime="0:0:0.2" Value="#FF99DFF5">
						<EasingColorKeyFrame.EasingFunction>
							<CircleEase EasingMode="EaseIn"/>
						</EasingColorKeyFrame.EasingFunction>
					</EasingColorKeyFrame>
				</ColorAnimationUsingKeyFrames>
				<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="{x:Null}">
					<EasingColorKeyFrame KeyTime="0" Value="#FF4ACEF7">
						<EasingColorKeyFrame.EasingFunction>
							<CircleEase EasingMode="EaseIn"/>
						</EasingColorKeyFrame.EasingFunction>
					</EasingColorKeyFrame>
					<EasingColorKeyFrame KeyTime="0:0:0.2" Value="#FF02B0E6">
						<EasingColorKeyFrame.EasingFunction>
							<CircleEase EasingMode="EaseIn"/>
						</EasingColorKeyFrame.EasingFunction>
					</EasingColorKeyFrame>
				</ColorAnimationUsingKeyFrames>
			</Storyboard>
			<Storyboard x:Key="OnMouseLeave1">
				<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="{x:Null}">
					<EasingColorKeyFrame KeyTime="0" Value="#FF99DFF5">
						<EasingColorKeyFrame.EasingFunction>
							<CircleEase EasingMode="EaseIn"/>
						</EasingColorKeyFrame.EasingFunction>
					</EasingColorKeyFrame>
					<EasingColorKeyFrame KeyTime="0:0:0.2" Value="#FFBBEAF9">
						<EasingColorKeyFrame.EasingFunction>
							<CircleEase EasingMode="EaseIn"/>
						</EasingColorKeyFrame.EasingFunction>
					</EasingColorKeyFrame>
				</ColorAnimationUsingKeyFrames>
				<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="{x:Null}">
					<EasingColorKeyFrame KeyTime="0" Value="#FF02B0E6">
						<EasingColorKeyFrame.EasingFunction>
							<CircleEase EasingMode="EaseIn"/>
						</EasingColorKeyFrame.EasingFunction>
					</EasingColorKeyFrame>
					<EasingColorKeyFrame KeyTime="0:0:0.2" Value="#FF4ACEF7">
						<EasingColorKeyFrame.EasingFunction>
							<CircleEase EasingMode="EaseIn"/>
						</EasingColorKeyFrame.EasingFunction>
					</EasingColorKeyFrame>
				</ColorAnimationUsingKeyFrames>
			</Storyboard>
			
		</Style.Resources>
		<Style.Triggers>
		
			<EventTrigger RoutedEvent="Mouse.MouseLeave">
				<BeginStoryboard x:Name="OnMouseLeave1_BeginStoryboard" Storyboard="{StaticResource OnMouseLeave1}"/>
			</EventTrigger>
			<EventTrigger RoutedEvent="Mouse.MouseEnter">
				<BeginStoryboard Storyboard="{StaticResource OnMouseMove1}"/>
			</EventTrigger>
		</Style.Triggers>
		
         <Setter Property="Background">
         	<Setter.Value>
         		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
         			<GradientStop Color="#cef8ff" Offset="0"/>
         			<GradientStop Color="#7fe0f8" Offset="1"/>
         		</LinearGradientBrush>
         	</Setter.Value>
         </Setter>
		 <Setter Property="Width" Value="200"/>
		 <Setter Property="Height" Value="25"/>
		 
    </Style>
</ResourceDictionary>